<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>导出PDF</title>
		<style>
			body {color: #333333; font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif; font-size: 13px;line-height: 1.5; word-wrap: break-word;}
			h2{text-align:center;padding:0;margin:0; font-size:18px;height:39px;}
			.pdf-table{border:1px solid #333333; border-collapse: collapse;width:100%}
			.pdf-table td{border:1px solid #333333;border-collapse: collapse; padding:5px; line-height:1.5;}
			.pdf-td-gray{background-color:#f5f5f5; text-align:right; width:90px;}
		</style>
	</head>
	<body>
	<h2>报销审批单</h2>
	<table class="pdf-table">
		<tr>
			<td class="pdf-td-gray">凭证编号</td>
			<td>{$detail.code}</td>
			<td class="pdf-td-gray">入账月份</td>
			<td>{$detail.income_month}</td>
			<td class="pdf-td-gray">原始单据日期</td>
			<td>{$detail.expense_time}</td>
		</tr>
		<tr>
			<td class="pdf-td-gray">报销主体</td>
			<td colspan="5">{$detail.subject_name|default='-'}</td>
		</tr>
		<tr>
			<td class="pdf-td-gray">报销员工</td>
			<td>{$detail.admin_name}</td>
			<td class="pdf-td-gray">报销部门</td>
			<td>{$detail.department}</td>
			<td class="pdf-td-gray">报销总费用</td>
			<td>{$detail.cost} 元</td>
		</tr>
		{notempty name="$detail.project_id"}
		<tr>
			<td class="pdf-td-gray">关联项目</td>
			<td colspan="5">{$detail.ptname|default='-'}</td>
		</tr>
		{/notempty}
		{notempty name="$detail.file_array"}
		<tr>
			<td class="pdf-td-gray">相关附件</td>
			<td colspan="5">
				{volist name="$detail.file_array" id="vo"}
				<div>{$i}、{$vo.name}</div>
				{/volist}
			</td>
		</tr>
		{/notempty}
	</table>
	<table class="pdf-table">
		<tr>
			<td class="pdf-td-gray" colspan="3" style="text-align:center;"><strong>报销选项</strong></td>
		</tr>
		<tr>
			<td class="pdf-td-gray" style="text-align:center;width:140px;">报销金额(元)</td>
			<td class="pdf-td-gray" style="text-align:center;width:140px;">报销项目</td>
			<td class="pdf-td-gray" style="text-align:center;width:480px;">备注信息</td>
		</tr>
		{volist name="$detail.list" id="vo"}
		<tr>
			<td style="text-align:center;">{$vo.amount}</td>
			<td style="text-align:center;">{$vo.cate_title}</td>
			<td>{$vo.remarks}</td>
		</tr>
		{/volist}
		<tr>
			<td class="pdf-td-gray" colspan="2">报销金额合计（小写）</td>
			<td>{$detail.cost}</td>
		</tr>
		<tr>
			<td class="pdf-td-gray" colspan="2">报销金额合计（大写）</td>
			<td>{:cny($detail.cost)}</td>
		</tr>
	</table>
	{include file="export/pdf_check" /}
	</body>
</html>